package cn.lovexiaov.javafx.util;

import java.time.LocalDate;
import javax.xml.bind.annotation.adapters.XmlAdapter;

/**
 * Created by Administrator on 04-13 0013.
 */
public class LocalDateAdapter extends XmlAdapter<String, LocalDate> {
  @Override public LocalDate unmarshal(String v) throws Exception {
    return LocalDate.parse(v);
  }

  @Override public String marshal(LocalDate v) throws Exception {
    return v.toString();
  }
}
